package top.tocchen.bookshop.dao.admin;

import org.apache.ibatis.annotations.Mapper;
import top.tocchen.bookshop.entity.admin.ManagerUserEntity;

/**
 * @author tocchen
 * @date 2022/8/10 16:14
 * @since jdk 1.8
 **/
@Mapper
public interface ManagerUserDao {

    /**
     * 通过Account和 Password 查询账号
     * @param account 账号
     * @param password 密码
     * @return ManagerUserEntity 实例
     */
    ManagerUserEntity queryAccountInfo(String account, String password);

    /**
     * 插入用户
     * @param entity 用户实例
     */
    void insertUser(ManagerUserEntity entity);
}
